home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet internetowy / Rozne / HTTrack 3.40-2 / httrack-3.40-2.exe / {app} / src_win / WinHTTrack / Wizard2.cpp < prev    next >
C/C++ Source or Header  |  2003-12-29  |  2KB  |  85 lines

  1. // wizard2.cpp : implementation file
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "Shell.h"
  6. #include "wizard2.h"
  7.  
  8. #ifdef _DEBUG
  9. #define new DEBUG_NEW
  10. #undef THIS_FILE
  11. static char THIS_FILE[] = __FILE__;
  12. #endif
  13. extern HICON httrack_icon;
  14.  
  15.  
  16. /////////////////////////////////////////////////////////////////////////////
  17. // wizard2 dialog
  18.  
  19.  
  20. wizard2::wizard2(CWnd* pParent /*=NULL*/)
  21.     : CDialog(wizard2::IDD, pParent)
  22. {
  23.     //{{AFX_DATA_INIT(wizard2)
  24.     m_question = _T("");
  25.     //}}AFX_DATA_INIT
  26. }
  27.  
  28.  
  29. void wizard2::DoDataExchange(CDataExchange* pDX)
  30. {
  31.     CDialog::DoDataExchange(pDX);
  32.     //{{AFX_DATA_MAP(wizard2)
  33.     DDX_Text(pDX, IDC_question, m_question);
  34.     //}}AFX_DATA_MAP
  35. }
  36.  
  37.  
  38. BEGIN_MESSAGE_MAP(wizard2, CDialog)
  39.     //{{AFX_MSG_MAP(wizard2)
  40.     ON_WM_TIMER()
  41.     ON_WM_DESTROY()
  42.     //}}AFX_MSG_MAP
  43.     ON_COMMAND(ID_HELP, OnHelp)
  44. END_MESSAGE_MAP()
  45.  
  46.  
  47.  
  48. BOOL wizard2::OnInitDialog() 
  49. {
  50.     CDialog::OnInitDialog();
  51.     
  52.   SetIcon(httrack_icon,false);
  53.   SetIcon(httrack_icon,true);  
  54.     
  55.   tm=SetTimer(WM_TIMER,1000,NULL);
  56.   SetForegroundWindow();   // yop en premier plan!
  57.  
  58.   // Patcher l'interface pour les Franτais ;-)
  59.   if (LANG_T(-1)) {    // Patcher en franτais
  60.     //SetDlgItemText(,"");
  61.     SetWindowTextCP(this, LANG(LANG_N1)); // "Question du wizard");
  62.     SetDlgItemTextCP(this, IDCANCEL,LANG(LANG_N2)); // "NON");
  63.   }
  64.  
  65.  
  66.   return TRUE;  // return TRUE unless you set the focus to a control
  67.                   // EXCEPTION: OCX Property Pages should return FALSE
  68. }
  69.  
  70. void wizard2::OnTimer(UINT nIDEvent) 
  71. {
  72.   wflag=!wflag;
  73.     FlashWindow(wflag);
  74.     CDialog::OnTimer(nIDEvent);
  75. }
  76.  
  77. void wizard2::OnDestroy() 
  78. {
  79.   if (tm!=0) {
  80.     KillTimer(tm); 
  81.     tm=-1; 
  82.   }
  83.     CDialog::OnDestroy();    
  84. }
  85.